package com.example.administrator.myapplication;

import android.content.DialogInterface;
import android.support.annotation.Nullable;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
       initView();
       initData();
       initEvent();

    }
   private void initView(){
       commonDialog commonDialog = new commonDialog(MainActivity.this);
       commonDialog.setTitle("提示");
       commonDialog.setContent("确定删除当前信息？");
       commonDialog.setPositive("赖生根");
       commonDialog.setNegtive("２０１９６５１１０４２６");
       commonDialog.setOnClickBottomListener(new commonDialog.OnClickBottomListener() {
           @Override
           public void onLeftBottomClick() {
               Toast.makeText(MainActivity.this, "取消", Toast.LENGTH_SHORT).show();
           }

           @Override
           public void onRightBottomClick() {
               Toast.makeText(MainActivity.this, "确定", Toast.LENGTH_SHORT).show();
           }
       });
       commonDialog.show();
   } private void initData(){

   } private void initEvent(){

   }
}